[gail] Proper connection to a toplevel window destroy signal
authorAlejandro Piñeiro <apinheiro@igalia.com>
Sat, 25 Dec 2010 23:13:07 +0000 (00:13 +0100)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Mon, 27 Dec 2010 12:21:09 +0000 (13:21 +0100)
commite1029b907c862435b0464b7105b22582a4fb25c8
treedb906391bc1dec63e9b20b8b469d1e055866c573
parent48b47971b5c6657a8141b9128c5dc05bfa80ced7
[gail] Proper connection to a toplevel window destroy signal

Only connect to the destroy of a toplevel window if it was
really added to the toplevel list of windows.

The destroy callback was added to remove the window from
the toplevel list. The callback doesn't cause a error,
but would iterate on the toplevel list without success.
modules/other/gail/gailtoplevel.c